package com.ry.est.service;

import com.alipay.api.AlipayApiException;

import java.util.Map;

/**
 * @author ry
 * @since 2021-11-16 11:05
 **/
public interface PayService {

    /**
     * 支付定金
     * @param orderNo
     * @return
     * @throws Exception
     */
    String paySubscription(String orderNo) throws Exception;

    /**
     * 对支付宝异步回调的处理
     * @param params
     * @return
     */
    String aliPayNotify(Map<String, String> params) throws AlipayApiException;

    boolean isSignVerified(Map<String, String> params) throws AlipayApiException;
}
